﻿<%@ Page Language="C#" MasterPageFile="~/Administrator/Admin.master" AutoEventWireup="true" Inherits="Administrator_AdminProductIU" Title="Quản trị Sản Phẩm" Codebehind="AdminProductIU.aspx.cs" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <h1>
        <asp:Label ID="lbAdminProductIU" runat="server" Text="Thêm mới thông tin sản phẩm"></asp:Label>
    </h1>
    <table cellspacing="0" cellpadding="0" class="data-table">
        <tr>
            <td colspan="2">
                <span class="failureNotification">
                    <asp:Literal ID="ltrMessage" runat="server"></asp:Literal>
                    <asp:Label ID="lbMessage" runat="server" Text=""></asp:Label>
                </span>
                <asp:ValidationSummary ID="SanPhamSummary" runat="server" CssClass="failureNotification"
                    ValidationGroup="SanPhamValidate" />
            </td>
        </tr>
        <%--Danh mục sản phẩm--%>
        <tr>
            <td align="right">
                <asp:Label ID="lbDanhMuc" runat="server">Danh mục sản phẩm :</asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="ddlDanhMuc" runat="server" CssClass="textEntry">
                </asp:DropDownList>
            </td>
        </tr>
        <%--  Tên sản phẩm--%>
        <tr>
            <td align="right">
                <asp:Label ID="lbTenSanPhamVN" runat="server">Tên sản phẩm (VN) :</asp:Label>
            </td>
            <th>
                <asp:TextBox ID="txtTenSanPhamVN" runat="server" CssClass="textEntry"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rvTenSanPhamVN" runat="server" ControlToValidate="txtTenSanPhamVN"
                    ValidationGroup="SanPhamValidate" CssClass="failureNotification" ErrorMessage="Tên sản phẩm VN không để trống"
                    ToolTip="Tên sản phẩm VN không để trống" Text="*" />
            </th>
        </tr>
        <tr class="OtherLanguage">
            <td align="right">
                <asp:Label ID="lbTenSanPhamOther" runat="server">Tên sản phẩm (Other) :</asp:Label>
            </td>
            <th>
                <asp:TextBox ID="txtTenSanPhamOther" runat="server" CssClass="textEntry"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rvTenSanPhamOther" runat="server" ControlToValidate="txtTenSanPhamOther"
                    ValidationGroup="SanPhamValidate" CssClass="failureNotification" ErrorMessage="Tên sản phẩm Other không để trống"
                    ToolTip="Tên sản phẩm Other không để trống" Text="*" />
            </th>
        </tr>
        <%--Mô tả--%>
        <tr>
            <td align="right">
                <asp:Label ID="lbMoTaVN" runat="server">Mô tả (VN) :</asp:Label>
            </td>
            <th>
                <FCKeditorV2:FCKeditor ID="fckMoTaVN" runat="server" Width="90%" Height="400px" BasePath="../fck/fckeditor/">
                </FCKeditorV2:FCKeditor>
            </th>
        </tr>
        <tr class="OtherLanguage">
            <td align="right">
                <asp:Label ID="lbMoTaOther" runat="server">Mô tả (Other) :</asp:Label>
            </td>
            <th>
                <FCKeditorV2:FCKeditor ID="fckMoTaOther" runat="server" Width="90%" Height="400px"
                    BasePath="../fck/fckeditor/">
                </FCKeditorV2:FCKeditor>
            </th>
        </tr>
        <%--Đơn giá--%>
        <tr>
            <td align="right">
                <asp:Label ID="lbDonGia" runat="server">Đơn giá :</asp:Label>
            </td>
            <th>
                <asp:TextBox ID="txtDonGia" runat="server" CssClass="textEntry" Text="0.0" />
            </th>
        </tr>
        <%-- Số lượng--%>
        <tr>
            <td align="right">
                <asp:Label ID="lbSoLuong" runat="server">Số lượng :</asp:Label>
            </td>
            <th>
                <asp:TextBox ID="txtSoLuong" runat="server" CssClass="textEntry" Text="1" />
            </th>
        </tr>
        <%--Giảm giá--%>
        <tr>
            <td align="right">
                <asp:Label ID="lbGiamGia" runat="server">Giảm giá :</asp:Label>
            </td>
            <th>
                <asp:TextBox ID="txtGiamGia" runat="server" CssClass="textEntry" Text="0.0" />
            </th>
        </tr>
        <%--Hình ảnh--%>
        <tr>
            <td align="right">
                <asp:Label ID="lbHinhAnh" runat="server" Text="Hình ảnh đại diện :"></asp:Label>
            </td>
            <th>
                <asp:FileUpload ID="funHinhAnh" runat="server" CssClass="textEntry" />
            </th>
        </tr>
        <tr style="text-align: left">
            <td>
                &nbsp;
            </td>
            <th style="text-align: left">
                <asp:Image ID="picHinhAnh" runat="server" BorderWidth="0" Height="150px" Width="150px" />
            </th>
        </tr>
        <%--Nội dung--%>
        <tr>
            <td align="right">
                <asp:Label ID="lbNoiDungVN" runat="server">Nội dung (VN) :</asp:Label>
            </td>
            <th>
                <FCKeditorV2:FCKeditor ID="fckNoiDungVN" runat="server" Width="90%" Height="400px"
                    BasePath="../fck/fckeditor/">
                </FCKeditorV2:FCKeditor>
            </th>
        </tr>
        <tr class="OtherLanguage">
            <td align="right">
                <asp:Label ID="lbNoiDungOther" runat="server">Nội dung (Other) :</asp:Label>
            </td>
            <th>
                <FCKeditorV2:FCKeditor ID="fckNoiDungOther" runat="server" Width="90%" Height="400px"
                    BasePath="../fck/fckeditor/">
                </FCKeditorV2:FCKeditor>
            </th>
        </tr>
        <%--Nổi bật--%>
        <tr>
            <td>
            </td>
            <th>
                <asp:CheckBox ID="chkNoiBat" runat="server" Text="Sản phẩm nổi bật" />
                <asp:CheckBox ID="ckIsHot" runat="server" Text="Sản phẩm Hot" />
            </th>
        </tr>
        <%--   Lượt xem--%>
        <tr>
            <td align="right">
                <asp:Label ID="lbLuotXem" runat="server">Lượt xem :</asp:Label>
            </td>
            <th>
                <asp:TextBox ID="txtLuotXem" runat="server" ReadOnly="true" CssClass="textEntry"
                    Text="0" />
            </th>
        </tr>
        <%--Sắp xếp--%>
        <tr>
            <td align="right">
                <asp:Label ID="lbSapXep" runat="server">Sắp xếp :</asp:Label>
            </td>
            <th>
                <asp:TextBox ID="txtSapXep" runat="server" CssClass="textEntry" Text="1" />
            </th>
        </tr>
        <tr>
              <td align="right">
                </td>
                <th>
                    <asp:CheckBox ID="ckPublish" runat="server" Checked="true" Text="Hiển thị" />
        </tr>
        <tr>
            <td>
            </td>
            <th>
                <asp:Button ID="btnSave" runat="server" Text="Lưu" ValidationGroup="SanPhamValidate"
                    OnClick="btnSave_Click" CssClass="btn_action" Style="height: 26px"  />
                 <asp:Button ID="Button1" runat="server" Text="Áp dụng" ValidationGroup="SanPhamValidate"
                     Style="height: 26px" onclick="Button1_Click" CssClass="btn_action" />
                <asp:Button ID="btnProductImages" runat="server" Text="Quản lý ảnh" 
                    onclick="btnProductImages_Click" CssClass="btn_action" />
                <asp:Button ID="btnBack" runat="server" Text="Quay lại" OnClick="btnBack_Click" CssClass="btn_action" />
            </th>
        </tr>
    </table>
</asp:Content>
